const user = {
    state:{
        name:"闻C"
    },
    mutations:{
        setName(state,name){
            state.name = name
        }
    },
    actions:{
        asyncSetName(store,name){
            store.commit('setName',name)
        }
    },
    getters:{
        getName(state){
            return state.name
        }
    }
}
export default user;